package com.secxiot.provider.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@Data
public class AppPunchCardVo implements Serializable {

    @ApiModelProperty(value = "考勤ID", required = true)
    private Long id;

    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "医院ID", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "部门ID", required = true)
    private Long deptId;

    @ApiModelProperty(value = "排班记录ID", required = true)
    private Long schedulRecordId;

    @ApiModelProperty(value = "打卡时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date punchTime;

    @ApiModelProperty(value = "打卡类型 字典00017", required = true)
    private String punchType;

    @ApiModelProperty(value = "经度", required = true)
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度", required = true)
    private BigDecimal latitude;

    @ApiModelProperty(value = "打卡距离", required = true)
    private BigDecimal distance;

    @ApiModelProperty(value = "详细地址", required = true)
    private String address;

    @ApiModelProperty(value = "是否异常(0:异常,1:正常)", required = true)
    private Integer isAccord;

    @ApiModelProperty(value = "是否有效，0：无效 1：有效", required = true)
    private Integer status;
}